<?php

return [

    // 会员配置
    'member' => [
        'is_active_default' => 1,
        'is_lock_default' => 0,

        // 头像
        'default_avatar' => '/images/default_avatar.jpg',

        // Socialite
        'socialite' => [
            // 微信登录
            'weixinweb' => [
                'app' => 'weixinweb',
                'name' => '微信',
                'logo' => '/images/icons/weixin.svg',
                'enabled' => 0,
            ],
        ],
    ],

    // 上传
    'upload' => [
        'image' => [
            'disk' => 'oss',
            'path' => 'jumofang',
            'params' => '',
        ],
        'file' => [
            'disk' => 'oss',
            'path' => 'jumofangfile',
            'params' => '',
        ],
        'attach' => [
            'course' => [
                'disk' => 'attach',
                'path' => 'course',
            ],
        ],
    ],

    // 管理员配置
    'administrator' => [
        'super_slug' => 'administrator',
    ],

    // 系统配置
    'system' => [
        'icp' => '',
        'logo' => '',
        'backend' => '',
        'player_thumb' => '/images/player-thumb.png',

        // 缓存开关
        'cache' => [
            'status' => 0,
            'expire' => 3600 * 10,
        ],

        // 短信频率
        'limiter' => [
            'sms' => [
                'times' => 6,
                'minutes' => 1,
            ]
        ],
        // 默认短信服务商
        'sms' => 'aliyun',
        // editor
        'editor' => \App\Constant\FrontendConstant::RENDER_MARKDOWN,
        // 登录
        'login' => [
            'limit' => [
                'rule' => \App\Constant\FrontendConstant::LOGIN_LIMIT_RULE_DEFAULT,
            ]
        ],
    ],
];
